

git clone -b localApps --depth 1  https://gitee.com/mirrord/appstore.git /mnt/sdb1/app/1panelThirdApp/
cd /mnt/sdb1/app/1panelThirdApp/
git pull
rm -rf /mnt/sdb1/opt/1panel/resource/apps/local/*
cp -rf /mnt/sdb1/app/1panelThirdApp/apps/* /mnt/sdb1/opt/1panel/resource/apps/local/


# 安装 Docker 镜像前，设置安装位置到U盘
# 首先必须是使用 install-docker.sh 获得最新版
# 注意，请确保你的磁盘稳定在线，否则将会程序错误无法访问 docker .
systemctl stop docker               # 停止 Docker 服务
mkdir -p /mnt/sda1/docker           # 建立文件夹
chmod 777 -R /mnt/sdb1/app/docker           # 赋予权限
vi /lib/systemd/system/docker.service   # 编辑配置文件
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
插上一句 --data-root /mnt/sda1/docker 变为如下:
ExecStart=/usr/bin/dockerd --data-root /mnt/sdb1/app/docker -H fd:// --containerd=/run/containerd/containerd.sock
systemctl daemon-reload
systemctl start docker



docker run --net host -d --restart=always --name campus-imaotai \
-v /mnt/sdb1/config/docker/imaotai:/home/campus/conf --privileged \
-e TZ=Asia/Shanghai \
-e SERVER_PORT=8160 \
-e spring.config.additional-location=/home/campus/conf/application-prod.yml \
oddfar/campus-imaotai